package com.example.cloud.model.customer;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wt on 2019/1/3.
 * 投诉中心
 */
@Entity(name = "complaint_record")
@Data
@EqualsAndHashCode(callSuper = false)
public class ComplaintRecord extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者编号
    @Column(name = "patient_id")
    private Long patientId;
    // 患者姓名
    @Column(name = "patient_name")
    private String patientName;
    // 病历号
    @Column(name = "medical_number")
    private String medicalNumber;
    // 相关人员主键
    @Column(name = "related_personnel")
    private String relatedPersonnel;
    // 相关人员名称
    @Column(name = "related_personnel_name")
    private String relatedPersonnelName;
    // 投诉等级
    @Column(name = "level")
    private Integer level;
    // 投诉方式
    @Column(name = "way")
    private Integer way;
    // 事件对象
    @Column(name = "reason_id")
    private Long reasonId;
    // 事件对象名称
    @Column(name = "reason_name")
    private String reasonName;
    // 事件经过
    @Column(name = "process")
    private String process;
    // 部门主键
    @Column(name = "department_id")
    private Long departmentId;
    // 部门名称
    @Column(name = "department_name")
    private String departmentName;
    // 接待人主键
    @Column(name = "user_id")
    private Long userId;
    // 接待人名称
    @Column(name = "user_name")
    private String userName;
    // 账户编号
    @Column(name = "accountId")
    private Long accountId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
